body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#layout {
    width: 100%;
    height: 100vh;
    display: flex;

    .Nav_container {
        height: 100%;
        transition: all 0.3s ease-in-out;
    }

    .Nav_collapsed {
        width: 200px;
    }

    .right_main {
        height: 100%;
        flex: 1;
        padding: 10px;

        .main_box {
            padding: 20px;

            h1 {
                font-size: 16px;
                margin-bottom: 20px;
            }

            .main_row {
                background: var(--bg-color-secondary);
                color: var(--text-color);
                padding: 10px;
                border-radius: 5px;
                margin-bottom: 20px;

                p {
                    padding: 5px 5px 0 5px;
                    font-size: 12px;
                    color: var(--nav-wrapper);
                    line-height: 24px;
                    border-left: 2px solid var(--nav-wrapper);

                    &:first-of-type {
                        padding-top: 0;
                    }
                }
            }

            .main_text {
                font-size: 16px;
                line-height: 1.7;
            }

        }
    }
}

.mb_container {
    position: fixed;
    width: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 4px;
    padding: 15px;
    z-index: 999;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

    .mb_title {
        font-size: 16px;
        font-weight: bold;
    }

    .mb_content {
        font-size: 14px;
        margin-bottom: 10px;
        min-height: 50px;
    }

    .mb_btns {
        display: flex;
        justify-content: flex-end;

        .mb_btn:first-child {
            margin-right: 10px;
        }
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 50%;
    transform: translateX(50%);
    z-index: 1000;

    .toast {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 4px;
        color: white;
        display: flex;
        justify-content: space-between;
        font-size: 14px
    }
}

.toast.info {
    background: #1890ff;
}

.toast.success {
    background: #52c41a;
}

.toast.error {
    background: #ff4d4f;
}

.ant-btn {
    margin-right: 10px;
}

/* 基础树容器 */
.tree_box {
    list-style: none;
    padding-left: 0;
    margin: 0;

    /* 每级树节点 */
    .tree_item {
        padding: 8px 0;
        position: relative;
        cursor: pointer;
    }

    /* 子级缩进控制（关键技巧） */
    .tree_box {
        padding-left: 24px;
        /* 每级缩进量 */
        border-left: 1px dashed #ddd;
        /* 可选：添加连接线 */
    }

    /* 交互增强 */
    .tree_item:hover {
        background-color: #f5f5f5;
    }


    /* 带子项的节点标记 */
    .tree_item:has(> .tree_box)::before {
        content: "📁 ";
    }

    /* 叶子节点标记 */
    .tree_item:not(:has(> .tree_box))::before {
        content: "📄 ";
    }
}